curry based on bilby library