make sure directories go in the right place