added a logic to chk if the engine has already been mounted in the routes before inserting