fix otp call chain
get rid of warnings on unused vars