logic for getting methods, update docs