move models init to router