apipie commands - refactoring towards minimalistic framework