refactored skeleton users api in nex file