using metal for api controller with selective  modules enabled