added instructions parameter to api