basic functionality for swift lwrp