API revamp done

needs commands to finalize plugin