added module exists check