more work on api glue layer