this handler uses dir and msgToSp. subdirectories are allowed.