allow templates and public dirs to not exist, add flags