added small api stuff