got the basic valid apply working

#283