better api for creating miners