fixes permalink issues, package restructure of API module