a simple user api framework