enable (?) post_newproject to be called outside web context