Use specialized_api
Added missing import os for direct invocation
Minor cleanup
Fix wrong number of args for new spezialized_api (masked by test wrapper!)