create and delete obj directory